package com.spj.dao;

import java.util.ArrayList;

import com.spj.pojo.Good;
import com.spj.pojo.GoodCategory;
import org.apache.ibatis.annotations.Param;


public interface GoodDao {
	ArrayList<Good> findIndexNewGoods();
	ArrayList<GoodCategory> findAllCategory();
	ArrayList<Good> findIndexHotGoods();
	ArrayList<Good> findGoodsByCategory(@Param("gid")int gid,@Param("page")int page);
	int findGoodCountOfCategory(int gid);
	ArrayList<Good> findBestHotGoods();
	Good findGoodById(int gid);
	ArrayList<Good> findAllNewGoods(@Param("page")int page);
	int findCountOfNewGoods();
	ArrayList<Good> testGoods(@Param("gid")int gid);
	ArrayList<Good> UsersGoods(String word);
}
